package com.example.demo.unitls;

/**
 * 统一管管理 Redis 的 key
 *
 * @author 叮当猫的百宝箱
 * @since 1.0
 */
public class RedisKeyGenerator {

    public static final String ONLINE_PREFIX = "online:";

    public static String generateOnlineKey(Long id) {
        return ONLINE_PREFIX + id;
    }
}
